package demo1;

public class Gold extends Card{
    public Gold(String name,double balance){
        super(name, balance);
    }

    @Override
    public double pay(double payment) {
        double p1 = payment*0.8;
        return p1;
    }
}
